﻿//using System;
//using System.Net;
//using System.Windows;
//using System.Windows.Controls;
//using System.Windows.Documents;
//using System.Windows.Ink;
//using System.Windows.Input;
//using System.Windows.Media;
//using System.Windows.Media.Animation;
//using System.Windows.Shapes;
//using SharePhone.Common;
//using SharePhone.UserGroupService;
//using SharePhone.Core;
//using System.Xml.Linq;

//namespace SharePhone.Provider {
//    public class UserGroupProvider {
//        /// <summary>
//        /// Not yet implemented
//        /// </summary>
//        /// <param name="accountName"></param>
//        /// <param name="spUrl"></param>
//        /// <param name="credentials"></param>
//        public static void GetUserInfo(string accountName, string spUrl, CredentialSettings credentials) {
//            UserGroupSoapClient client = ServiceFactory.GetUserGroupService(spUrl, credentials);
//            client.GetUserInfoCompleted += new EventHandler<GetUserInfoCompletedEventArgs>(client_GetUserInfoCompleted);
//            client.GetUserInfoAsync(accountName);

//        }

//        private static void client_GetUserInfoCompleted(object sender, GetUserInfoCompletedEventArgs e) {
//            UserInfo user = new UserInfo();
//            //XElement userElement = e.Result.Descendants(XName.Get("User", "http://schemas.microsoft.com/sharepoint/soap/directory/"));

//        }

//    }
//}
